package window;

import java.awt.Graphics;

import javax.swing.JPanel;

public class Graph extends JPanel
{
  private static final long serialVersionUID = 6565841880985607036L;
 
  protected void paintComponent(Graphics g)
  {
    super.paintComponent(g);
    
    int topX = 200;
    int topY = 60;
    int dist = 50;

    g.drawLine(topX, topY, topX, topY + 4 * dist);// >|<

    g.drawLine(topX - dist, topY + dist, topX - dist, topY + 3 * dist);// |<
    g.drawLine(topX + dist, topY + dist, topX + dist, topY + 3 * dist);// >|
    g.drawLine(topX + dist, topY + dist, topX - dist, topY + 3 * dist);// /
    g.drawLine(topX + dist, topY + 3 * dist, topX - dist, topY + dist);// \

    g.drawLine(topX - dist, topY + dist, topX + dist, topY + dist);// ^-
    g.drawLine(topX - dist, topY + 3 * dist, topX + dist, topY + 3 * dist);// 
    g.drawLine(topX - dist, topY + 2 * dist, topX + dist, topY + 2 * dist);

    g.drawLine(topX, topY, topX + dist, topY + dist);
    g.drawLine(topX, topY, topX - dist, topY + dist);
    g.drawLine(topX, topY + 4 * dist, topX - dist, topY + 3 * dist);
    g.drawLine(topX, topY + 4 * dist, topX + dist, topY + 3 * dist);
  }
}
